<?php
global $GLOBALS;
$msg = array();
if(isset($_COOKIE['member']))
	$member = unserialize($_COOKIE['member']);
include('config/kp.config.php');
include('config/kp.import.php');
include('config/kp.function.php');
switch($m)
{
	case 'catalog':
	case 'single':
	case 'guide':
	case 'admin':
	case 'flink':
	case 'adv':	
	case 'seo':
	case 'activity':
	case 'promotion':
	case 'coupon':
	case 'haitao':
	case 'store':
	case 'hotkey':
	{
		if($c == 'add')
			$oper->addInfo($m,$_POST);
		else if($c == 'edit')
			$oper->editInfo($m,$_POST,$ids);		
		else if($c == 'save')
			$oper->saveInfo($m,$_POST,$ids);
		else
		{
		}			
	}break;
	case 'import':$oper->importc($_POST);break;
	case 'imports':$oper->imports($_GET);break;
	case 'importv':$oper->importv($_GET);break;
	case 'upload':$oper->uploadForm($_FILES,$c,$f);break;
	case 'editor':$oper->uploadEditor();break;
	case 'remote':$oper->uploadRemote($_FILES);break;
	case 'purge':$oper->purgeOption($c,$ids,$pos);break;
	case 'sort':$oper->sortOption($c,$pid,$ids);break;
	case 'examine':$oper->examineOption($c,$ids,$pos);break;
	case 'system':$oper->sysConfig($_POST,$c);break;
	case 'ajax':$oper->ajaxTodo($ids);break;
	default:$oper->nullOfEmpty();
}
?>
